import { ElMessage, ElMessageBox } from "element-plus";

export const tip = (str: string, type: "success" | "warning" | "error") => {
  ElMessage({
    message: str,
    type: type,
  });
};

export const elementConfirm = () => {
  return ElMessageBox.confirm(
    "确认删除该条信息？",
    "Warning",
    {
      confirmButtonText: "确定",
      cancelButtonText: "删除",
      type: "warning",
    }
  );
};
